using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Person.View
{
    public partial class frmReportPerson : Form
    {
        public frmReportPerson()
        {
            InitializeComponent();
        }

        Service.PersonService svc = new Service.PersonService();

        private void Form1_Load(object sender, EventArgs e)
        {
            IList<Model.Person> ds = svc.RefreshGrid();
            rptPerSon rpt = new rptPerSon();
            rpt.DataSource = ds;

            printControl1.PrintingSystem = rpt.PrintingSystem;
            rpt.CreateDocument();
        }
    }
}